#include "Route.hpp"
#include "UdpChatServer.hpp"
#include <memory>

int main()
{
    std::unique_ptr<RouteModule::Route> route = std::make_unique<RouteModule::Route>();
    std::unique_ptr<UdpChatServerModule::UdpChatServer> chatserver(
        std::make_unique<UdpChatServerModule::UdpChatServer>(
            std::bind(&RouteModule::Route::HandlerChat, route.get(),
                      std::placeholders::_1,
                      std::placeholders::_2,
                      std::placeholders::_3)));
    chatserver->Start();
    return 0;
}